package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.RankRule;
import com.novax.ex.activity.infrastructure.entity.RankSubRule;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/11/23/15:46
 */
 

public interface RankSubRuleMapper extends BaseMapper {

    /**
     * @param rankSubId
     * @Description: 子活动规则列表
     * @Author: ChenXi
     * @Date: 2023/11/24 10:50
     * @return: java.lang.Object
     **/
    List<RankSubRule> subRuleList(@Param("rankSubId") Long rankSubId);

    /**
     * @Description: 查询是否已有此语言rule配置
     * @Author: ChenXi
     * @Date:  2023/11/24 15:11
     * @param rankSubId
     * @param language
     * @return: java.util.List<com.novax.ex.activity.infrastructure.entity.RankRule>
     **/
    RankSubRule findByRankIdAndLanguage(@Param("rankSubId")Long rankSubId, @Param("language")String language);

}